import {BaseConfig, FieldConfig} from "@/fields/config";

export class PhoneConfig extends BaseConfig {
  title = "手机号码";
}

const fieldType = "phone";

export const phoneDefine = {
  name:"手机号码",
  icon:"el-icon-mobile-phone",
  type: fieldType,
  create: () => {
    const config = new PhoneConfig();
    return new FieldConfig(fieldType, config);
  },
  design: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/designer/phone/index"),
  config: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/config/phone/index")
}
